import instance from '@/utils/request.js';



export const addLike = (data) => {
  return instance({
    url: '/like',
    method: 'post',
    data,
  })
}

export const cancelLike = (id) => {
  return instance({
    url: `/like/${id}`,
    method: 'delete',
  })
}
